<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>整车销售清单</title>
 <script type="text/javascript" src="../js/common.js"></script>
   <link rel="stylesheet" href="../css/960.css" type="text/css" media="screen">
   <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
   <link rel="stylesheet" href="../css/print-preview.css" type="text/css" media="screen">
   <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
   <script src="../js/jquery.print-preview.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/find.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/utils.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript">
        $(function() {
           // $("#feature > div").scrollable({interval: 2000}).autoscroll();
            //$("#feature333 > div").scrollable({interval: 2000}).autoscroll();
            //$('#aside').prepend('<a class="print-preview">Print this page</a>');

            
            var billId = getIdByName("id");
            
            
            var dt = _findInfo("../newCarSale/find/allRecord/0/1", {"id":billId});
            if(IsNotEmpty(dt)&&dt.state==0){
            	var billNo =  _getSomeOfJson(0, dt, "billNo")
				var createdTime =_getSomeOfJson(0, dt, "createdTime")
				var customerName =_getSomeOfJson(0, dt, "customerName")
				var mp =_getSomeOfJson(0, dt, "mp")
				var CarSystemName =_getSomeOfJson(0, dt, "CarSystemName")
				var CarTypeName =_getSomeOfJson(0, dt, "CarTypeName")
				var VIN =_getSomeOfJson(0, dt, "VIN")
				var price =_getSomeOfJson(0, dt, "price")
				var tax =_getIntOfJson(0, dt, "tax")
				var saleType =_getIntOfJson(0, dt, "saleType")
				var insurance =_getIntOfJson(0, dt, "insurance")
				var decoration =_getIntOfJson(0, dt, "decoration")
				var checkCar =_getIntOfJson(0, dt, "checkCar")
				var Outbound =_getIntOfJson(0, dt, "Outbound")
				var serviceAmt =_getIntOfJson(0, dt, "serviceAmt")
				var otherAmt =_getIntOfJson(0, dt, "otherAmt")
				var factAmt =_getIntOfJson(0, dt, "factAmt")
				var deposit =_getIntOfJson(0, dt, "deposit")
				var post =_getIntOfJson(0, dt, "post")
				var cash =_getIntOfJson(0, dt, "cash")
				var checkAmt =_getIntOfJson(0, dt, "checkAmt")
				var Replacement =_getIntOfJson(0, dt, "Replacement")
				var Transfer =_getSomeOfJson(0, dt, "Transfer")
				var Staging =_getIntOfJson(0, dt, "Staging")
				var credit =_getSomeOfJson(0, dt, "credit")
				var memo =_getIntOfJson(0, dt, "memo")
				var createdMan =_getIntOfJson(0, dt, "createdMan")
				var ShopName =_getIntOfJson(0, dt, "ShopName")
				var saleMan = _getIntOfJson(0, dt, "saleMan");
            	$("#saleMan").html(saleMan)
            	$("#createdMan").html(createdMan)
            	$("#billNo").html(billNo)
            	$("#createdTime").html(createdTime)
            	$("#customerName").html(customerName)
            	$("#mp").html(mp)
            	$("#CarSystemName").html(CarSystemName)
            	$("#CarTypeName").html(CarTypeName)
            	$("#VIN").html(VIN)
            	$("#price").html(price)
            	$("#tax").html(tax)
            	$("#insurance").html(insurance)
            	$("#decoration").html(decoration)
            	$("#checkCar").html(checkCar)
            	$("#Outbound").html(Outbound)
            	$("#serviceAmt").html(serviceAmt)
            	$("#otherAmt").html(otherAmt)
            	$("#factAmt").html(factAmt)
            	$("#deposit").html(deposit)
            	$("#post").html(post)
            	$("#cash").html(cash)
            	$("#checkAmt").html(checkAmt)
            	$("#Replacement").html(Replacement)
            	$("#Transfer").html(Transfer)
            	$("#Staging").html(Staging)
            	$("#credit").html(credit)
            	$("#memo").html(memo)
            	$("#createdMan").html(createdMan)
            	$("#ShopName").html(ShopName)
            	$("#saleType").html(saleType)
                }
            var nowDate = new Date();
            $("#now").html( nowDate.getFullYear()+"-"+(nowDate.getMonth() + 1)+"-"+nowDate.getDate())
            
                    $.printPreview.loadPrintPreview();
            
         /*    // Add keybinding (not recommended for production use)
            $(document).bind('keydown', function(e) {
                var code = (e.keyCode ? e.keyCode : e.which);
                if (code == 80 && !$('#print-modal').length) {
                    $.printPreview.loadPrintPreview();
                    return false;
                }            
            }); */
        });
    </script>
</head>
<body>
<center>
<!-- <div  class="enter" ><input type="button" id="aside" value="打印" class="btn"></div><br>
 -->
<div id="printId" class="list">
	<div class="record" align="center" style="font-size: 17px;text-align: center;">整车销售清单</div>
	<div class="record"><label><span>店面：</span><i id="ShopName"></i></label><label><span>单号：</span><i id="billNo"></i></label><label><span id="timeType">日期：</span><i id="createdTime"></i></label></div>
	<div class="record"><label><span>客户姓名：</span><i id="customerName"></i></label><label><span>电话：</span><i id="mp"></i></label></div>
	<div class="record"><label><span>车系：</span><i id="CarSystemName"></i></label><label><span>车型：</span><i id="CarTypeName"></i></label><label><span>VIN：</span><i id="VIN"></i></label></div>
	<div class="record"><label><span>交款类型：</span><i id="saleType"></i></label></div>
	<div class="record"><label><span>车价：</span><i id="price"></i></label><label><span>购置税：</span><i id="tax"></i></label><label><span>装饰：</span><i id="decoration"></i></label></div>
	<div class="record"><label><span>验车：</span><i id="checkCar"></i></label><label><span>出库：</span><i id="Outbound"></i></label><label><span>金融服务费：</span><i id="serviceAmt"></i></label></div>
	<div class="record"><label><span>保险：</span><i id="insurance"></i></label></div>
	<div class="record"><label><span>合计：</span><i id="factAmt"></i></label></div>
	<div class="record"><label><span>抵定金：</span><i id="deposit"></i></label><label><span>刷卡：</span><i id="post"></i></label><label><span>现金：</span><i id="cash"></i></label></div>
	<div class="record"><label><span>支票：</span><i id="checkAmt"></i></label><label><span>转账：</span><i id="Transfer"></i></label><label><span>置换款：</span><i id="Replacement"></i></label></div>
	<div class="record"><label><span>分期：</span><i id="Staging"></i></label><label><span>挂账：</span><i id="credit"></i></label></div>
	<div class="record"><label><span>备注：</span><strong id="memo" class="sort"></strong></label></div>
 	<div class="record" style="text-align:left;line-height:20px;margin-bottom:10px;"><label><span>收银员：</span><i id="createdMan"></i></label><label><span>销售顾问：</span><i id="saleMan"></i></label></div>
 	<div class="record" style="text-align:left;line-height:20px;margin-bottom:10px;"><label><span>打票日期：</span><i id="now"></i></label><label><span>客户签字：</span><i></i></label></div>
    <div style="height:10px;"></div>
</div>
</center>

</body>
<style type="text/css">
.tb1 td,.tb1 th{text-align:center;padding:2px 3px;}
.list{width:600px;}
.enter .btn{padding:4px 14px;background-color:#0079BA;border:none;font-size:14px;font-family:Microsoft Yahei;color:#fff;border-radius:3px;}
</style>
</html>